package design.pattern.工厂模式;

/**
 * 加法类
 */
public class OperationAdd extends Operation {
    OperationAdd(double numberA, double numberB) {
        super(numberA, numberB);
    }

    OperationAdd(){}

    @Override
    double getResult() {
        return getNumberA() + getNumberB();
    }
}
